package dw.catalog

import dw.object.ExtensibleObject

/**
 * Represents a price book.
 */
class PriceBook extends ExtensibleObject {

	String			currencyCode,
					description,
					displayName,
					ID
					
	boolean			online,
					onlineFlag
					
	Date			onlineFrom,
					onlineTo
					
	PriceBook		parentPriceBook
					
	
    static constraints = {
		currencyCode(nullable: true)
		description(nullable: true)
		displayName(nullable: true)
		ID(nullable: false)
		
		online(nullable: true)
		onlineFlag(nullable: true)
		
		onlineFrom(nullable: true)
		onlineTo(nullable: true)
		
		parentPriceBook(nullable: true)
    }
	
	static mapping = {
		id generator: "uuid", name: "UUID", column: "UUID", unique:"true"
	}
}
